package com.lemeng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lemeng.entity.Result;
import com.lemeng.pojo.Address;
import com.lemeng.pojo.Order;
import com.lemeng.service.AddressService;
import com.lemeng.service.CartService;
import com.lemeng.service.OrderService;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Collections;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("order")
public class OrderController {

    @Reference
    OrderService orderService;

    @RequestMapping("toWxPay")
    public String toWxPay(@RequestParam String ordersn){
        return orderService.towxPay(ordersn);
    }

}
